package com.WFinstitute.controller;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.WFinstitute.domain.News;
import com.WFinstitute.domain.Test;
import com.WFinstitute.service.NewsService;
import com.WFinstitute.util.ImgUtil;
import com.WFinstitute.util.Page;
import com.WFinstitute.util.TimeUtil;
import com.WFinstitute.util.TrimHtmlUtil;

/**
 * 新闻管理
 * @author 匹夫
 * @date 2016-7-31 下午11:00:18
 * @function
 */
@Controller
@RequestMapping("/shownews")
public class NewsController {
	@Resource
	private NewsService  newsService;
	
	/**
	 * 【前台页面】新闻列表
	 * @param response
	 * @param request
	 * @return
	 */
	@RequestMapping("/list")
	public String add(HttpServletResponse response,HttpServletRequest request){
		return "/WEB-INF/views/news/list.jsp";
	}
	
}
